﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ctrip.Demo.RiskPlaform
{
    /// <summary>
    /// 信租接口响应模型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class XinZuResponse<T>
    {
        public string errno { get; set; }
        public string errmsg { get; set; }
        public T content { get; set; }

        /// <summary>
        /// 请求成功
        /// </summary>
        /// <returns></returns>
        public bool IsSuccess()
        {
            return this.errno == "100100";
        }

        /// <summary>
        /// 标识不正确
        /// </summary>
        /// <returns></returns>
        public bool IsSkeyNotCorrect()
        {
            return this.errno == "100202";
        }
    }
}
